﻿using System.Collections.Generic;
using SmartClientPlatform.OMS.CommonLibrary;
using SmartClientPlatform.RemoteClientBase;

namespace WcfService1
{
    // NOTE: If you change the class name "Service1" here, you must also update the reference to "Service1" in Web.config and in the associated .svc file.
    public class Service1 : IService1
    {
        public Class1 GetData()
        {
            return new Class1
                       {
                           A001 = "Test2",
                           Bbb = new Bbb {B001 = "T3"}
                       };
        }

        public List<OrderDto> GetOrders()
        {
            return new OMSFacade().GetOrders();
        }

        public void SaveOrders(DataChanges dataChanges)
        {
            new OMSFacade().SaveOrders(dataChanges);
        }
    }
}
